package com.king.config;

import com.king.utils.ParameterMapping;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: BoundSql
 * @Description: 解析SQL
 * @Author: wangchangyong
 * @Date: 2020/3/26 22:03
 * @Version: 1.0.0
 **/
public class BoundSql {

    // 解析后的sql
    private String sqlText;
    // ${}中字段名
    private List<ParameterMapping> parameterMappingList = new ArrayList<>();

    public BoundSql(String sqlText, List<ParameterMapping> parameterMappingList) {
        this.sqlText = sqlText;
        this.parameterMappingList = parameterMappingList;
    }

    public String getSqlText() {
        return sqlText;
    }

    public void setSqlText(String sqlText) {
        this.sqlText = sqlText;
    }

    public List<ParameterMapping> getParameterMappingList() {
        return parameterMappingList;
    }

    public void setParameterMappingList(List<ParameterMapping> parameterMappingList) {
        this.parameterMappingList = parameterMappingList;
    }
}
